package cn.jzq.kotoba.modules.principle.demeter.good;

import cn.jzq.kotoba.modules.principle.demeter.bad.Student;

import java.util.ArrayList;
import java.util.List;

public class DemeterGoodTest {
    public static void main(String[] args) {
        System.out.println("周末收假，学校领导命令老师去点名.....");
        List<Student> students = new ArrayList<>();
        for (int i = 0; i < 20; i++) {
            students.add(new Student());
        }
        Teacher teacher = new Teacher();
        teacher.command(new StudentLeader(students));
    }
}
